<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>8-对齐方式-使用line-height让img标签垂直居中问题</title>
		<style type="text/css">
			*{
				margin:0;
				padding:0;
			}
			.box{
				width: 600px;
				height:600px;
				line-height:600px;
				border:1px solid red;
			}
			img{
/* 				display: block;
				height:270px;
				width: 480px; */
				vertical-align: middle;
			}
		</style>
	</head>
	<body>
		<div class="box">
			<img src="images/1.jpg" alt="">
		</div>
	</body>
</html>
